package com.llh.bean;

import java.io.Serializable;
import java.util.Date;

public class FinaIndicator implements Serializable {
    private String ts_code;

    private Date ann_date;

    private Double roe;

    private Double debt_to_assets;

    private Date end_date;

    private Date open_day;

    private static final long serialVersionUID = 1L;

    public String getTs_code() {
        return ts_code;
    }

    public void setTs_code(String ts_code) {
        this.ts_code = ts_code == null ? null : ts_code.trim();
    }

    public Date getAnn_date() {
        return ann_date;
    }

    public void setAnn_date(Date ann_date) {
        this.ann_date = ann_date;
    }

    public Double getRoe() {
        return roe;
    }

    public void setRoe(Double roe) {
        this.roe = roe;
    }

    public Double getDebt_to_assets() {
        return debt_to_assets;
    }

    public void setDebt_to_assets(Double debt_to_assets) {
        this.debt_to_assets = debt_to_assets;
    }

    public Date getEnd_date() {
        return end_date;
    }

    public void setEnd_date(Date end_date) {
        this.end_date = end_date;
    }

    public Date getOpen_day() {
        return open_day;
    }

    public void setOpen_day(Date open_day) {
        this.open_day = open_day;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        FinaIndicator other = (FinaIndicator) that;
        return (this.getTs_code() == null ? other.getTs_code() == null : this.getTs_code().equals(other.getTs_code()))
            && (this.getAnn_date() == null ? other.getAnn_date() == null : this.getAnn_date().equals(other.getAnn_date()))
            && (this.getRoe() == null ? other.getRoe() == null : this.getRoe().equals(other.getRoe()))
            && (this.getDebt_to_assets() == null ? other.getDebt_to_assets() == null : this.getDebt_to_assets().equals(other.getDebt_to_assets()))
            && (this.getEnd_date() == null ? other.getEnd_date() == null : this.getEnd_date().equals(other.getEnd_date()))
            && (this.getOpen_day() == null ? other.getOpen_day() == null : this.getOpen_day().equals(other.getOpen_day()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getTs_code() == null) ? 0 : getTs_code().hashCode());
        result = prime * result + ((getAnn_date() == null) ? 0 : getAnn_date().hashCode());
        result = prime * result + ((getRoe() == null) ? 0 : getRoe().hashCode());
        result = prime * result + ((getDebt_to_assets() == null) ? 0 : getDebt_to_assets().hashCode());
        result = prime * result + ((getEnd_date() == null) ? 0 : getEnd_date().hashCode());
        result = prime * result + ((getOpen_day() == null) ? 0 : getOpen_day().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ts_code=").append(ts_code);
        sb.append(", ann_date=").append(ann_date);
        sb.append(", roe=").append(roe);
        sb.append(", debt_to_assets=").append(debt_to_assets);
        sb.append(", end_date=").append(end_date);
        sb.append(", open_day=").append(open_day);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}